﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectWebNhac.DTO;

namespace ProjectWebNhac.GUI.User
{
    public partial class TrangCaNhan : System.Web.UI.MasterPage
    {
        NguoiDungDTO nddto = new NguoiDungDTO();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["ThanhVien"] != null)
                {
                    nddto = (NguoiDungDTO)Session["ThanhVien"];
                    lbTaiKhoan.Text = nddto.TaiKhoan;
                    imgAvatar.ImageUrl = "../../HinhAnh/ThanhVien/" + nddto.Avatar.ToString();
                }
                else
                {
                    Response.Redirect("TrangChu.aspx");
                }
            }
        }
    }
}